﻿@model KhuyenMaiVang.DAL.AddressVouCher
@using KhuyenMaiVang.DAL;
@{
    ViewBag.Title = "Thêm địa chỉ";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
    Voucher voucher = ViewBag.Voucher;
}

@section heading{Thêm địa chỉ}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true);
        <div class="editor-label">
            @Html.LabelFor(model => model.VoucherID, "Voucher")
        </div>
        <div class="editor-field">
            @Html.DropDownList("VoucherID", String.Empty)
            @Html.ValidationMessageFor(model => model.VoucherID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AddressID, "Address")
        </div>
        <div class="editor-field">
            @Html.DropDownList("AddressID", String.Empty)
            @Html.ValidationMessageFor(model => model.AddressID)
        </div>
    <p>
            <input class="button" type="submit" value="Thêm địa chỉ" />
        </p>
}
<div>
    @Html.ActionLink("Quay lại", "Index")
</div>